package com.syn.michat.service;

import com.syn.michat.pojo.User;
import com.syn.michat.util.exception.ClientException;

public interface UserService {
    public void add(User user) throws ClientException;

    public User search(String username) throws ClientException;

    public User findUser(String userId) throws ClientException;

    public User findUser(String username, String password) throws ClientException;

    public void updateNickname(String username, String nickname) throws ClientException;
}
